#ifndef __DLG_CHAT_LOG__
#define __DLG_CHAT_LOG__
#include <memory>
#include "chat_log_html_view.h"
#include "resource.h"
class dlg_chat_log : public CDialogBase
{
	DECLARE_DYNAMIC(dlg_chat_log)
public:
	dlg_chat_log(CWnd* pParent = NULL);
	virtual ~dlg_chat_log();
	enum { IDD = IDD_CHAT_LOG_DLG };
protected:
	virtual void DoDataExchange(CDataExchange* pDX);
	DECLARE_MESSAGE_MAP()
	virtual BOOL OnInitDialog();
public:
	chat_log_html_view* get_html_view();
	void create_html_view();
	void del_sel_chat_log();
	afx_msg LRESULT on_delete_chat_log(WPARAM wParam, LPARAM lParam);
private:
	std::auto_ptr<chat_log_html_view> html_view_ptr_;
	std::string html_path_;
public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
};
#endif